package com.psl.action.work.halfproductkc;

import com.psl.model.userlogin;
import com.psl.services.work.halfbring;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class jijiagong_approve {
    public String execute() {
        HttpSession session = ServletActionContext.getRequest().getSession();
        userlogin userinfo = (userlogin) session.getAttribute("user");
        HttpServletRequest request = ServletActionContext.getRequest();
        String h_no = request.getParameter("h_no");
        String h_size = request.getParameter("h_size");
        String h_r = request.getParameter("h_r");
        int h_n = Integer.parseInt(request.getParameter("h_n"));
        int h_bring_num = Integer.parseInt(request.getParameter("h_bring_num"));
        String h_bring_datetime = request.getParameter("h_bring_datetime");
        halfbring hb = new halfbring();
        hb.lookupkc(h_no, h_size, h_r, h_n, h_bring_num, h_bring_datetime, userinfo.getPosition_id());
        hb.m_bring_list();
        return "success";
    }
}
